package zb.ex;

import java.sql.Time;
import java.util.concurrent.TimeUnit;

/**
 * @author wzby
 * @Date: 2022/8/8 21:42
 */
public class Ex1 {
    public static void main(String[] args) {
        System.out.printf("%tF  %<tT%n",System.currentTimeMillis());
        while (true){
            try {
                TimeUnit.SECONDS.sleep(5  );
            }catch (Exception e){
                e.printStackTrace();
            }
            System.out.printf("%tF %<tT%n",System.currentTimeMillis());
        }
    }
}
